﻿using Microsoft.Extensions.DependencyInjection;
using Microsoft.Extensions.DependencyInjection.Extensions;
using System.Configuration;
using System.Data;
using System.Windows;

namespace MVVMToolkitLesson
{
    /// <summary>
    /// Interaction logic for App.xaml
    /// </summary>
    public partial class App : Application
    {
        public static IServiceProvider Service { get;private set; }

        public App()
        {
            var service = new ServiceCollection();
            service.AddSingleton<MainViewModel>();
            Service = service.BuildServiceProvider();

            //service.RemoveAll<MainViewModel>();
        }
    }

}
